|
|
Replace "difference" with "union" and see what you get. Your cylinder is
turned the wrong way and scaled way off. Try...
cylinder {
<0,0,0>,<0,0,1>,1
scale <1,0.04,0.04>
translate <0.15/2,0.1,-0.01>
... but even that could use some fixing.
"marabou" <not### [at] availableyet> wrote in message
news:3bddc064@news.povray.org...
>
> i tried to make an difference between a box and a cylinder:
> but the result was a differenced box.
> what went wrong?
>
> code follows:
> -------------------------
> #declare fl_bock=
>
> difference{
> box {
> <0,0,0>,<1,1,1>
> scale <0.15,0.1,0.05>
> }
> cylinder {
> <0,0,0>,<1,0,0>,1
> scale <0.04,0.04,1>
> translate <0.15/2,0.1,-0.01>
> }
> pigment{color Red}
> }//difference
>
> object{fl_bock}
> -------------------------
>
> thanks for hints
>
Post a reply to this message
|
|